package cn.itsource.ymcc.constant;

public class OrderStatusConstants {
    /**
     * 默认0下单成功待支付
     */
    public static final Integer ORDER_DEFAULT = 0;
    /**
     * 1已支付
     */
    public static final Integer ORDER_OK = 1;
    /**
     * 2订单取消
     */
    public static final Integer ORDER_CANCEL = 2;
    /**
     * 3订单退款
     */
    public static final Integer ORDER_REFUND = 3;
    /**
     * 4支付超时或失败
     */
    public static final Integer ORDER_OUT_TIME = 4;
    /**
     * 5订单确认订单完成
     */
    public static final Integer ORDER_SUCCESS = 5;

    /**
     * 0 订单类型 普通订单
     */
    public static final Integer ORDER_TYPE_DEFAULT = 0;
    public static final String ORDER_TYPE_DEFAULT_NAME = "普通订单";
    /**
     * 1 订单类型 秒杀订单
     */
    public static final Integer ORDER_TYPE_KILL = 1;
    public static final String ORDER_TYPE_KILL_NAME = "秒杀订单";

    public static final String TOPIC_COURSE_ORDER_PUSH_TO_SRS = "TOPIC_COURSE_ORDER_PUSH_TO_SRS";
    public static final String TAGS_COURSE_ORDER_PUSH_TO_SRS = "TAGS_COURSE_ORDER_PUSH_TO_SRS";

    /**
     * 事务消息
     */
    public static final String MQ_COURSEORDER_PAY_GROUP_TRANSACTION = "service-order-pay";
    public static final String MQ_TOPIC_COURSE_ORDER_PUSH_TO_TRANSACTION = "MQ_TOPIC_COURSE_ORDER_PUSH_TO_TRANSACTION";
    public static final String MQ_TAGS_COURSE_ORDER_PUSH_TO_TRANSACTION = "MQ_TAGS_COURSE_ORDER_PUSH_TO_TRANSACTION";

    /**
     * 延迟消息  验证是否已经支付
     */
    public static final String TOPIC_COURSE_ORDER_DELAY = "TOPIC_COURSE_ORDER_DELAY";
    public static final String TAGS_COURSE_ORDER_DELAY = "TAGS_COURSE_ORDER_DELAY";

    /**
     * 延迟消息  用户未支付进行关单
     */
    public static final String TOPIC_COURSE_ORDER_DELAY_CLOSE = "TOPIC_COURSE_ORDER_DELAY_CLOSE";
    public static final String TAGS_COURSE_ORDER_DELAY_CLOSE = "TAGS_COURSE_ORDER_DELAY_CLOSE";
}
